logo

The best IT Trainig Institute In Gurgaon

Install TestNG in Selenium

To install TestNG in Eclipse, follow these steps:
  • Open Eclipse: Launch your Eclipse IDE.
  • Go to Eclipse Marketplace: Navigate to Help > Eclipse Marketplace....
  • Search for TestNG: In the search bar, type TestNG and hit Enter.
  • Install TestNG: Find TestNG in the search results and click the Install button.
  • Follow the Installation Wizard: Proceed through the installation steps, accepting the license agreement when prompted.
  • Restart Eclipse: Once the installation is complete, Eclipse will prompt you to restart. Restart to finalize the installation.
Via Update Site:
  • Open Eclipse: Launch your Eclipse IDE.
  • Go to Install New Software: Navigate to Help > Install New Software...
  • Add TestNG Repository: Click Add... in the top-right corner
    • In the Name field, enter TestNG.
    • In the Location field, enter the following URL: https://testng.org/testng-eclipse-update-site.
  • Select TestNG Features: Check the box next to TestNG and click Next.
  • Install TestNG: Proceed through the installation steps, accepting the license agreement when prompted.
  • Restart Eclipse: Once the installation is complete, Eclipse will prompt you to restart. Restart to finalize the installation.
Verify Installation:
  • Open Eclipse: After restarting, open Eclipse.
  • Check for TestNG: Go to Window > Preferences.
  • Find TestNG: In the Preferences window, look for TestNG in the left-hand panel to ensure it is installed.